import request from "@/utils/request";

// 查询设备参数列表
export function listParam(query) {
  return request({
    url: "/equipment/param/list",
    method: "get",
    params: query
  });
}

// 查询设备参数详细
export function getParam(equipmentParamId) {
  return request({
    url: "/equipment/param/" + equipmentParamId,
    method: "get"
  });
}

// 新增设备参数
export function addParam(data) {
  return request({
    url: "/equipment/param",
    method: "post",
    data: data
  });
}

// 修改设备参数
export function updateParam(data) {
  return request({
    url: "/equipment/param",
    method: "put",
    data: data
  });
}

// 删除设备参数
export function delParam(equipmentParamId) {
  return request({
    url: "/equipment/param/" + equipmentParamId,
    method: "delete"
  });
}

// 设备参数立列表
export function listEquipment(query) {
  return request({
    url: "/equipment/info/list",
    method: "get",
    params: query
  });
}
// 根据设备ID获取设备所有参数
export function getEquipmentParam(id) {
  return request({
    url: "/equipment/param/remote/listInfo/"+id,
    method: "get",
  });
}